<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<!--表格id与lay-filter属性一致，统一定义为zmn-table-->
<table class="layui-hide" id="zmn-table" lay-filter="zmn-table" th:fragment="table">
    <thead>
    <tr>
        <th lay-data="{field:'categTwo', width:180, unresize:true, align:'center'}">二级产品分类</th>
        <th lay-data="{field:'zmnWarrantyInfo', align:'left'}">保修信息</th>
        <th lay-data="{field:'updateTime', align:'center'}">最后一次操作时间/人</th>
        <!--规定操作列置于最后-->
        <th lay-data="{field:'操作', width:150, unresize:true, align:'center'}">操作</th>
    </tr>
    </thead>
    <tbody>
    <tr th:each="item:${categTwos}">
        <td th:text="${item.name}"></td>
        <td>
            <zmn th:if="${map[item.categId] != null && map[item.categId] != null}">
                <zmn>保修规则：</zmn><zmn th:text="${map[item.categId].ruleName}"></zmn>
                <zmn th:if="${map[item.categId].ruleId != 1}">
                    <br>
                    <zmn>保修时长：</zmn><zmn th:text="${map[item.categId].warrantyDurationStrShow}"></zmn>
                    <br>
                    <zmn>保修内容：</zmn><zmn th:text="${map[item.categId].warrantyContentStrShow}"></zmn>
                    <br>
                    <zmn>是否延长：</zmn><zmn th:text="${map[item.categId].extendType == 2 ? '延长' : '不延长'}"></zmn>
                    <br>
                    <zmn th:if="${map[item.categId].extendType == 2}">延长天数：</zmn><zmn th:text="${map[item.categId].extendedDuration}"></zmn>
                </zmn>
            </zmn>
        </td>

        <td th:text="${timeMap == null ? '': timeMap[item.categId]}">updateTime</td>
        <td>
            <a th:if="${#authPermit.checkPermit('/service/item/warrantyInfoDetail.action')}" th:lay-href="|/service/item/warrantyInfoDetail.action?bizType=${faultTariff.bizType}&categId=${item.categId}&groupId=${faultItem.groupId}&itemId=${faultItem.itemId}|" style="color: #00a0e9">设置保修信息</a>
        </td>
    </tr>
    </tbody>
</table>
